#ifndef GLOBAL_H
#define GLOBAL_H
#include<functional>
#include<QWidget>
#include<QStyle>
#include<QRegularExpression>
extern std::function<void(QWidget*)> repolish;


enum ReqId{
    ID_GET_VARIFY_CODE=1001,
    ID_REG_USER=1002,
    ID_RESET_PSW,
    ID_USER_LOGIN
};

enum MoudleId{
    REGISTER=0,
    LOGIN,
    RESETPSW
};

enum Ecode{
    SUCCESS=0,
    ERROR_JSON=1,
    ERROR_NETWORK=2

};
#endif // GLOBAL_H
